//
//  SEGNewSelectCommunityCell.h
//  SEGUhomeStandard
//
//  Created by 揭婧雯 on 2018/8/14.
//  Copyright © 2018年 刘山. All rights reserved.
//

#import <UIKit/UIKit.h>
static NSString* KSEGNewSelectCommunityCellIdentifier = @"SEGNewSelectCommunityCellIdentifier";

typedef NS_ENUM(NSUInteger, SEGNewSelectCommunityCellType) {
    SEGNewSelectCommunityCellType_Search = 0, /*搜索样式 （左边是小区名，最右边是城市名）*/
    SEGNewSelectCommunityCellType_City = 1, /*城市样式 （左边是城市名）*/
    SEGNewSelectCommunityCellType_Community = 2, /*城市样式 （左边是小区名）*/
    SEGNewSelectCommunityCellType_History = 3, /*历史记录样式 （左边是城市名+小区名，最右边是删除按钮）*/
    SEGNewSelectCommunityCellType_ShowAll = 4, /*展开收起样式 （左边是城市名+小区名，最右边是删除按钮）*/
    SEGNewSelectCommunityCellType_CurrentCity = 5 /*当前城市样式 （左边是城市名，最右边是重新定位按钮）*/
};

/**
 选择小区cell代理
 */
@protocol SEGNewSelectCommunityCellDelegate <NSObject>
@optional
- (void)deleteButtonClickedWithIndexPath:(NSIndexPath *)indexPath;
- (void)showAllButtonClicked;
- (void)locateButtonClicked;
@end


@interface SEGNewSelectCommunityCell : SEGBaseTableViewCell

@property(nonatomic, weak) id<SEGNewSelectCommunityCellDelegate> delegate;
/**
 * 展示cell样式
 * @author Wendy
 * @param type  cell类型
 * @param cityName  城市名称
 * @param communityName  小区名称
 * @param indexPath  cell所在位置
 */
- (void)showCellWithType:(SEGNewSelectCommunityCellType)type
                cityName:(NSString *)cityName
           communityName:(NSString *)communityName
               indexPath:(NSIndexPath *)indexPath;
/**
 是否展开
 */
@property (nonatomic, assign) BOOL isShowAll;


@end
